import Vue from 'vue';
import Vuex,{Store} from 'vuex';
import rootModule from './rootModule';
import modules from './modules';

Vue.use(Vuex);

const store = new Store({
    ...rootModule,
    modules
})

window.store = store;

export default store